package im

import (
	"fmt"
	"wave-service/server/app/common/utils"
)

func GenChannelIdByContact(userId, hasUserId int64, secret string) string {
	num := userId + hasUserId
	return genChannelId(fmt.Sprintf("%d%v", num, secret))
}

func genChannelId(key string) string {
	return utils.Md5Encode(key)
}
